package top.techqi.usbd.kext

import android.hardware.usb.UsbDevice
import top.techqi.usbd.UsbDriver

fun Class<out UsbDriver>.new(device: UsbDevice, intfId: Int): UsbDriver {
    return getConstructor(UsbDevice::class.java, Int::class.java)
        .newInstance(device, intfId)
}
